import request from '@/plugin/axios'
const BASE_URL = "/base/building"
export function buildingList() {
  return request({
    url: BASE_URL + "/all",
    method: 'post',
  })
}

export function buildingPage(data) {
  return request({
    url: BASE_URL + "/page",
    method: 'post',
    data
  })
}
export function buildingAdd(data) {
  return request({
    url: BASE_URL + "/add",
    method: 'post',
    data
  })
}
export function buildingUpdate(data) {
  return request({
    url: BASE_URL + "/update",
    method: 'post',
    data
  })
}
export function buildingDelete(id) {
  return request({
    url: BASE_URL + "/del",
    method: 'post',
    data: { id }
  })
}